import * as network from '@/utils/request';

import { agent } from '../../config/Apis';


export async function getAgentList(params: any): Promise<any> {
    return network.post(agent.agentList, {
        data: params,
        requestType: 'form'
    });
}

export async function getAgentDetail(params: any): Promise<any> {
    return network.post(agent.agentDetail, {
        data: params,
        requestType: 'form'
    });
}

export async function AgentCreate(params: any): Promise<any> {
    return network.post(agent.agentCreate, {
        data: params,
        requestType: 'form'
    });
}

export async function AgentUpdate(params: any): Promise<any> {
    return network.post(agent.agentUpdate, {
        data: params,
        requestType: 'form'
    });
}

export async function AgentDelete(params: any): Promise<any> {
    return network.post(agent.agentDelete, {
        data: params,
        requestType: 'form'
    });
}

export async function AgentLogList(params: any): Promise<any> {
    return network.post(agent.agentLogList, {
        data: params,
        requestType: 'form'
    });
}
